﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Skynet.DynamicSite.DynamicData.FieldTemplates
{
    public partial class Date_Field :System.Web.DynamicData.FieldTemplateUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public override Control DataControl
        {
            get
            {
                return Literal1;
            }
        }
        public override string FieldValueString
        {
            get
            {
                var res = this.GetColumnValue(this.Column);
                return string.Format("{0:d}", res);  
            }
        }
    }
}